

#ifndef _SHELL_RESUSERCODE_MESSAGE_H_
#define _SHELL_RESUSERCODE_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
using namespace std;

class ResUserCodeMessage : public Message
{
	public:
	ResUserCodeMessage();
	~ResUserCodeMessage();
	void reset();
	ResUserCodeMessage* clone();
	static const int _ID;
	//code 10:登录成功，11：密码错误，12：登录失败，未知 100:注册成功 101:用户名存在,102:用户名过长或密码过长,103不能有空格等特殊字符 
	int32 code;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
